package io.gitee.yth.design.pattern.test.core.pattern.behavioral.visitor.element;

import io.gitee.yth.design.pattern.test.core.pattern.behavioral.visitor.visitor.Visitor;

/**
 * @author yth
 * @since 2023-04-29-16:32
 */
public class IntegerElement implements Visitable {

    private final Integer value;

    public IntegerElement(int value) {
        this.value = value;
    }

    public Integer getValue() {
        return value;
    }

    @Override
    public void accept(Visitor v) {
        v.visitInteger(this);
    }
}
